<#include "/includes/header.ftl">
<#assign curr_brand_sid = "">
<#if brand?has_content><#assign curr_brand_sid = brand.sysId></#if>
<div id='productlist_nav'>
	<#if primaryProductCategoryTrail?has_content>
		<#--articles path-->
			<b>Your Position:&nbsp;</b><A href='<@spring.url "/home.jsp"/>'>Product Home</A>&gt;&gt;
			<#list primaryProductCategoryTrail as g>
				<A href='<@spring.url "/listcategory2product.jsp?pdgsid=${g.sysId}&brdsid=${curr_brand_sid}"/>'>${g.name?default("No-Name")}</A>&gt;&gt;
			</#list>
			<b><#if brand?has_content>${brand.name?default("No-Name")}</#if>:</b>					
	</#if>			
</div>
			
<div id='productlist_brands'>
	<#assign curr_product_gsid="">
	<#if productCategory?has_content>
		<#assign curr_product_gsid=productCategory.sysId>
		<#if categoryBrandList?has_content>
			<B>Product Brands:</B><br/>
			<#list categoryBrandList as brd>
				<A href='<@spring.url "/listcategory2product.jsp?pdgsid=${curr_product_gsid}&brdsid=${brd.sysId}"/>'>
					<#if brd.smallImage?has_content><IMG src='<@spring.url "/IMAGES/${brd.smallImage}"/>' border="0" alt='${brd.name?default("No-Name")}' width="100" height="50"/><#else>${brd.name?default("No-Name")}</#if>
				</A>
			</#list>
		</#if>					
	</#if>					
</div>

<div id='productlist_categories'>
	<#if productCategory?has_content && childProductCategoryList?has_content>
		<B>${productCategory.name?default("No-Name")}分类:</B>
		<#list childProductCategoryList as g>
			<A href='<@spring.url "/listcategory2product.jsp?pdgsid=${g.sysId}&brdsid=${curr_brand_sid}"/>'>${g.name?default(g.id)}</A>
		</#list>				
	</#if>				
</div>

<div id='productlist_contents'>
	<#if productList?has_content>
		<#list productList as prd>
			<li>
			<div class='product_img'><A href='<@spring.url "/viewproductdetail.jsp?prdsid=${prd.sysId}&pdgsid=${curr_product_gsid}"/>'  ><IMG src='<@spring.url "/IMAGES/PRODUCT/PRODUCT_MEDIUM_DEFAULT.JPG"/>' width="80" height="60" style="border: 1px solid rgb(0, 0, 0);" /></A></div>
			<div class='product_desc'><A href='<@spring.url "/viewproductdetail.jsp?prdsid=${prd.sysId}&pdgsid=${curr_product_gsid}"/>'   class='product_title'>${prd.name?default("No-Name")}</A>
			<br/>${prd.shortDesc?default("No-Short-Desc")}</div>
			</li>
		</#list>								
	</#if>						
</div>

<#if productList?has_content>
	<div id="productlist_pagefooter"><#include "/includes/pagefooter.ftl"></div>
</#if>
<#include "/includes/footer.ftl">